package org.dromara.system.service;

import org.dromara.system.domain.XcxSubscribeKeyword;
import org.dromara.system.domain.vo.XcxSubscribeKeywordVo;
import org.dromara.system.domain.bo.XcxSubscribeKeywordBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 订阅关键字Service接口
 *
 * @author Lion Li
 * @date 2024-07-01
 */
public interface IXcxSubscribeKeywordService {

    /**
     * 查询订阅关键字
     */
    XcxSubscribeKeywordVo queryById(Long id);

    /**
     * 查询订阅关键字列表
     */
    TableDataInfo<XcxSubscribeKeywordVo> queryPageList(XcxSubscribeKeywordBo bo, PageQuery pageQuery);

    /**
     * 查询订阅关键字列表
     */
    List<XcxSubscribeKeywordVo> queryList(XcxSubscribeKeywordBo bo);

    /**
     * 新增订阅关键字
     */
    Boolean insertByBo(XcxSubscribeKeywordBo bo);

    /**
     * 修改订阅关键字
     */
    Boolean updateByBo(XcxSubscribeKeywordBo bo);

    /**
     * 校验并批量删除订阅关键字信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<XcxSubscribeKeywordVo> queryListKeyword(XcxSubscribeKeywordBo bo);

    List<Long> queryKeywordUserId(String keyword, String projectUnit);
}
